/**
 * 
 */
package com.maxin.mapper;



import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.maxin.entity.Carttable;

/**
 * @author: maxin
 * @description: 购物车mapper
 */
public interface CarttableMapper {
	@Insert("insert into carttable values(#{id}, #{busertable_id})")
	int insert(Carttable carttable);
	
	@Delete("delete from carttable where id = #{id}")
	int deleteById(long id);
	
	@Select("select id from carttable where busertable_id = #{busertable_id}")
	long getId(long id);
//	
//	@Select("select * from carttable")
//	List<Carttable> selectAll();
//	
//	@Select("select * from carttable limit #{pageIndex}, #{pageSize}")
//	List<Carttable> selectByPage(int pageIndex, int pageSize);
}
